/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Persistencia;

import java.lang.reflect.Field;

/**
 *
 * @author HP
 */
public class ReflectionUtils {
    
    public static String getFieldsAsString(Class clazz){              
        StringBuilder sb = new StringBuilder();        
        Field[] fields = clazz.getDeclaredFields();
        for (Field field : fields) {
            sb.append(field.getName()).append(", ");
        }         
        String campos = sb.toString();
        return campos.substring(0, campos.length()-2);
    }
    
    public String getFieldContentAsString(Class clazz){
        return null;
    }    
}
